package cn.springmvc.dao;

import cn.springmvc.model.Zuowu;
import cn.springmvc.model.ZuowuExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ZuowuMapper {
    int countByExample(ZuowuExample example);

    int deleteByExample(ZuowuExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Zuowu record);

    int insertSelective(Zuowu record);

    List<Zuowu> selectByExample(ZuowuExample example);

    Zuowu selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Zuowu record, @Param("example") ZuowuExample example);

    int updateByExample(@Param("record") Zuowu record, @Param("example") ZuowuExample example);

    int updateByPrimaryKeySelective(Zuowu record);

    int updateByPrimaryKey(Zuowu record);
    
    int insertZuowu(Zuowu zw);
    Zuowu getById(int id);
    Zuowu getByName(@Param("name")String name);
}